-- cmd_buy_raw_food
-- Create by chengb
-- 购买食材

function Operation.cmd_buy_raw_food(classId, amount)
    -- 客户端自行购买
    if not PetM.buyRawFood(classId, amount) then
        return;
    end
    
    --记录起来，需要进行同步
    local v = { ["class_id"] = classId, ["amount"] = amount, };
    SyncM.addMessage("CMD_BUY_RAW_FOOD", v);
    SyncM.startSync();
end